package com.duoqin.syncassistant.data;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * code : 0
 * msg : 成功
 * data : [{"id":8,"path":"http://localhost:9000/vcard/1/1527839505125.vcf","
 * hash":"abcdefghi123321","count":110,"createAt":1527839505126},
 * {"id":7,"path":"http://localhost:9000/vcard/1/1527839361525.vcf","
 * hash":"abcdefghi123321","count":110,"createAt":1527839361530}]
 */
public class BackupFileRestoreResponse {

    @SerializedName("code")
    private int code;
    @SerializedName("msg")
    private String msg;
    @SerializedName("data")
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    /**
     * id : 8
     * path : http://localhost:9000/vcard/1/1527839505125.vcf
     * hash : abcdefghi123321
     * count : 110
     * createAt : 1527839505126
     */
    public static class DataBean {
        @SerializedName("id")
        private int id;
        @SerializedName("path")
        private String path;
        @SerializedName("hash")
        private String hash;
        @SerializedName("count")
        private int count;
        @SerializedName("createAt")
        private long createAt;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }

        public String getHash() {
            return hash;
        }

        public void setHash(String hash) {
            this.hash = hash;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public long getCreateAt() {
            return createAt;
        }

        public void setCreateAt(long createAt) {
            this.createAt = createAt;
        }
    }
}
